package com.maven.front.service.edustatisticsDay;

import com.maven.front.bean.EduStatisticsDay;
import com.maven.front.mapper.EduStatisticsDayMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service
public class EduStatisticsDayService {

    @Resource
    private EduStatisticsDayMapper eduStatisticsDayMapper;

    //查询时间段内的数据
    public List<EduStatisticsDay> selectEduStatistics(Date startTime, Date endTime){
        return this.eduStatisticsDayMapper.getStatisticsByDate(startTime,endTime);
    }

    //查询7天内数据
    public List<EduStatisticsDay> getDaya(){
        return this.eduStatisticsDayMapper.getDaya();
    }

    //查询15天内数据
    public List<EduStatisticsDay> getDayb(){
        return this.eduStatisticsDayMapper.getDayb();
    }

    //查询30天内数据
    public List<EduStatisticsDay> getDayc(){
        return this.eduStatisticsDayMapper.getDayc();
    }

}
